package com.ruoyi.framework.security;

import org.springframework.security.authentication.UsernamePasswordAuthenticationToken;
import org.springframework.security.core.GrantedAuthority;

import java.util.Collection;
import java.util.HashMap;
import java.util.Map;

public class UsernamePasswordAuthenticationTokenExt extends UsernamePasswordAuthenticationToken {
    private Map<String,Object> ext = new HashMap();

    public UsernamePasswordAuthenticationTokenExt(Object principal, Object credentials) {
        super(principal, credentials);
    }

    public UsernamePasswordAuthenticationTokenExt(Object principal, Object credentials, Collection<? extends GrantedAuthority> authorities) {
        super(principal, credentials, authorities);
    }

    public Map<String, Object> getExt() {
        return ext;
    }

    public void setExt(Map<String, Object> ext) {
        this.ext = ext;
    }
}
